/**
 * 硬件接口信息表
 */
import { postRequest } from '/@/lib/axios'

export const deviceModuleDetailApi = {
  /**
   * 分页
   */
  page: (param) => {
    return postRequest('/b-merchant/device_module_detail/page', param)
  },
  /**
   * 根据id查询
   */
  findId: (param) => {
    return postRequest('/b-merchant/device_module_detail/find_id', param)
  },
  /**
   * 新增
   */
  insert: (param) => {
    return postRequest('/b-merchant/device_module_detail/insert', param)
  },
  /**
   * 修改
   */
  update: (param) => {
    return postRequest('/b-merchant/device_module_detail/update', param)
  },
  /**
   * 修改状态
   */
  updateStatus: (param) => {
    return postRequest('/b-merchant/device_module_detail/update_status', param)
  },
  /**
   * 修改是否默认
   */
  updateIsDefault: (param) => {
    return postRequest('/b-merchant/device_module_detail/update_is_default', param)
  },
  /**
   * 删除
   */
  delete: (param) => {
    return postRequest('/b-merchant/device_module_detail/delete', param)
  },
}
